package com.deyinet.bdcms.core.common;

import com.alibaba.fastjson.JSON;
import com.deyinet.bdcms.core.bean.EntityToVo;

import java.util.List;


/**
 * Created by Administrator on 2017/4/10 0010.
 */
public class ListToJsonTool{
    public static String listToJon(List t1){
        StringBuffer json=new StringBuffer("{totalRow:"+t1.size()+", pageCurrent:1, list:");
        String str= JSON.toJSON(t1).toString();
        json.append(str).append("}");
        str=json.toString();
        return str;
    }
}
